<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <h:form id="bairroForm" enctype="multipart/form-data">
                <br/>
                <h3 class="title">Visualizar Logradouro</h3>
                <p:growl id="messages" showDetail="false" autoUpdate="true"  /> 
                <p:panel id="logradouroPanel" style="background: none; border: none;" 
                         styleClass="container_24 clearfix both ">
                    <h4 class="title">Dados Gerais</h4>

                    <p:outputLabel value="Logradouro" styleClass="grid_3" for="logradouro"/>
                    <p:inputText id="logradouro" styleClass="grid_20" value="#{managerLogradouro.dne.rua}" 
                                 readonly="true" />
                    <div class="clear"/>

                    <p:outputLabel value="CEP" styleClass="grid_3" for="cep"/>
                    <p:inputMask id="cep" styleClass="grid_4" value="#{managerLogradouro.dne.cep}" 
                                 mask="99.999-999" readonly="true"/>

                    <p:outputLabel value="Bairro" styleClass="grid_3 alpha" for="bairro"/>
                    <p:inputText id="bairro" styleClass="grid_13" 
                                 value="#{managerLogradouro.dne.bairro.nome.toString().concat(' / ').
                                          concat(managerLogradouro.dne.bairro.cidade.nome).concat( ' - ' ).concat(managerLogradouro.dne.bairro.cidade.estado.sgl)}"
                                 readonly="true"/>
                    <div class="clear"/><br/>

                </p:panel>

                <div class="buttonAction">
                    <p:button href="pesquisarlogradouro.xhtml" value="Voltar" icon="ui-icon-arrowreturnthick-1-w" />
                </div>
            </h:form>

        </ui:define> 
    </ui:composition>

</html>
